/**
 * Created by yqj on 2017/1/23.
 */
module.exports = (Resource) => {
  const customActions = {
    login: {method: 'POST', url: '/restapi/smartfactory/user/auth/login{/loginAccount}{/loginPassword}'},
    getUserRoles: {method: 'GET', url: '/restapi/smartfactory/user/acl/role{?queryOperation}'},
    getUserByRole: {method: 'GET', url: '/restapi/smartfactory/user/mgt/role{/filterRole}{/currentPage}{/pageSize}{?filterAccountPrefix}'},
    getQueryUserList: {method: 'GET', url: '/restapi/smartfactory/user/mgt/role{/role}/1/999'},
    createUser: {method: 'POST', url: '/restapi/smartfactory/user/mgt{?loginPassword}'},
    deleteUser: {method: 'DELETE', url: '/restapi/smartfactory/user/mgt{/deletingUserId}'}
  }
  return Resource('', {}, customActions)
}
